<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">

<head th:replace="header :: common_header(~{::title},~{::link})">
    <title>秒到2.0综合管理后台-商户管理</title>
</head>
<body class="page-header-fixed page-sidebar-closed-hide-logo page-content-white">
<form action="" method="post" name="form1" id="form1" >
    <!-- <div class="page-wrapper"> -->
        <div class="page-header navbar navbar-fixed-top" th:insert="~{index :: navbar-top}">
        </div>
        <div class="clearfix"> </div>
        <div class="page-container">
            <div class="page-sidebar-wrapper" th:insert="~{index :: sidebar}">
            </div>
            <div class="page-content-wrapper">
                <div class="page-content">
                    <!--<div class="page-bar">
                        <ul class="page-breadcrumb">
                            <li>
                                <a href="#">首页</a>
                                <i class="fa fa-circle"></i>
                            </li>
                            <li>
                                <a href="#">业务管理</a>
                                <i class="fa fa-circle"></i>
                            </li>
                            <li>
                                <span>商户管理</span>
                            </li>
                        </ul>
                    </div>-->
                       <div class="content">
                      <div class="portlet box grey">

							<div class="portlet-title">

								<div class="caption"><i class=""></i>商户列表</div>

								<div class="actions">

									<div class="btn-group">
									</div>

								</div>

							</div>

							<div class="portlet-body">
							<div class="form-horizontal">
							        <label class="control-label col-lg-1 text-center">商户名称</label>
							        <div class="col-lg-2">
							          <input  type="text" class="form-control " name="name">
							        </div>
							        <label class="control-label col-lg-1 text-center">手机号</label>
							        <div class="col-lg-2">
							          <input  type="text" class="form-control " name="phone">
							        </div>
							     <!--  
							        <label class="control-label col-lg-1 text-center">屡属关系</label>
							        <div class="col-lg-2">
							          <input  type="text" class="form-control ">
							        </div>
								<!-- 	<label class="control-label col-lg-1 text-center">状态</label>
							        <div class="col-lg-2">
							         	<select  name="city"></select>
							        </div> -->
							        <label class="control-label col-lg-1 text-center">模版</label>
							        <div class="col-lg-2" th:if="${not #lists.isEmpty(tpList)}">
							        <!--   <input  type="text" class="form-control " name="templateId"> -->
							          <select class="form-control" name="templateId" >
							              <option th:each="lp:${tpList}"  th:text="${lp.name}">name</option>
							          </select>
							        </div>
							          <label class="control-label col-lg-1 text-center">开通时间</label>
							       <div class="col-lg-2">
							        <input  type="text" class="form-control " name="createDate1" onClick="WdatePicker({dateFmt:'yyyy/MM/dd HH:mm'})">
							        </div>
							           <label class="control-label col-lg-1 text-center">到</label>
							       <div class="col-lg-2">
							        <input  type="text" class="form-control " name="createDate1" onClick="WdatePicker({dateFmt:'yyyy/MM/dd HH:mm'})">
							        </div>
							      <div  id="distpicker" data-toggle="distpicker">
											<lable class="col-md-1 control-label">省份：</lable>
											<div class="col-lg-2">
											<select data-province="湖北省" name="province"></select>
											</div>
											<lable class="col-md-1 control-label">城市：</lable>
											<div class="col-lg-2">
											<select data-city="武汉市" name="city"></select>
											</div>
										</div> 
							</div>
							    <div class="input-append col-lg-6">
                                  <!--   <button class="btn " type="button">清除</button> -->
									<button class="btn green" type="button" onclick="getCheck();">查询</button>
                                    <button class="btn green" type="button" onclick="add();">添加</button>
								</div>
							
								<table class="table table-striped table-bordered table-hover" id="sample_2">
									<thead>
										<tr>
											<th style="width:8px;"><input type="checkbox" class="group-checkable" data-set="#sample_2 .checkboxes" /></th>
											<th>序号</th>
											<th class="hidden-480">商户名称</th>
											<th class="hidden-480">手机号</th>
											<th class="hidden-480">省份</th>
											<th class="hidden-480">城市</th>
                                            <th class="hidden-480">模板</th>
                                        <!--     <th class="hidden-480">余日</th> -->
                                   <!--          <th class="hidden-480">屡受关系</th> -->
                                               <th class="hidden-480">开通时间</th>
                                              <th class="hidden-480">操作</th> 
										</tr>
									</thead>
									<tbody th:if="${not #lists.isEmpty(agentList)}" id="tb_content">
										<tr class="odd gradeX" th:each="al:${agentList}">
											<td ><input type="checkbox" class="checkboxes" value="1" /></td>
											<td  th:text="${al.id}"></td>
											<td class="hidden-480"><a  th:text="${al.name}"></a></td>
	                                        <td class="hidden-480"><a  th:text="${al.phone}"></a></td>
	                                        <td class="hidden-480"><a   th:text="${al.province}"></a></td>
	                                        <td class="hidden-480"><a   th:text="${al.city}"></a></td>
										    <td class="hidden-480"><a   th:text="${al.templateId}"></a></td>
										 <!--    <td ></td> -->
									<!-- 	<td ></td> -->
										<td ><a   th:text="${al.createDate}"></a></td>
										<td >
										<button class="btn green" name="show" type="button" >查看</button>
											<button class="btn green" name="delete" type="button" >删除</button>
											
										</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
                </div>
            </div>
        </div>
       </div>
        <div class="page-footer">
            <div class="page-footer-inner"> 2017 &copy; 秒迅科技</a>
            </div>
            <div class="scroll-to-top">
                <i class="icon-arrow-up"></i>
            </div>
        </div>
    </form>
    <!-- 业务js -->
    <script th:src="@{/assets/pages/scripts/tenant.js}" type="text/javascript"></script>
</body>
</html>